package com.xuecheng.orders.service;

import com.xuecheng.messagesdk.model.po.MqMessage;
import com.xuecheng.orders.model.dto.AddOrderDto;
import com.xuecheng.orders.model.dto.PayRecordDto;
import com.xuecheng.orders.model.dto.PayStatusDto;
import com.xuecheng.orders.model.po.XcPayRecord;

import java.io.IOException;

/**
 * 订单相关的service接口
 */
public interface OrderService {

    public PayRecordDto createOrder(String userId, AddOrderDto addOrderDto) throws IOException;

    public XcPayRecord getPayRecordByPayno(String payNo);

    public PayRecordDto queryPayResult(String payNo);

    public void saveAliPayStatus(PayStatusDto payStatusDto);

    public void notifyPayResult(MqMessage mqMessage);

}
